package cn.wolfcode.crm.web.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

@Controller
public class LoginController {

    @RequestMapping("login")
    public String login (Model model, HttpServletRequest req){

        return "forward:/login.jsp";

    }
    @RequestMapping("main")
    public String main (){
        return "main";
    }

    @RequestMapping("logout")
    public String logout (HttpSession session){

        return "redirect:/login.html";
    }


}
